package com.candy.oop5;

public class Test01 {
    public static void main(String[] args) {
        Soldier s1=new Soldier();
        Gun ak=new AK47();
        Gun k=new K98();
        s1.fightting(ak);
        s1.fightting(k);
    }
}
